package ar.edu.unq.wannaplay.builders;

import ar.edu.unq.wannaplay.entity.Entity;
import ar.edu.unq.wannaplay.exceptions.NegativeNumberException;
import ar.edu.unq.wannaplay.helpers.LicenceSpitter;

public class LicenceSpitterBuilder implements Builder {

    @Override
    public Entity build() {
        return new LicenceSpitter();
    }

    @Override
    public void modifyDefaultAttribute(final Entity entity) {
        try {
            ((LicenceSpitter) entity).addLicence("wasd", 0, 0);
        } catch (NegativeNumberException e) {
            e.getStackTrace();
        }
    }
}
